<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 600px;
			height: 600px;
			background: gray url() 0 0 no-repeat;
		}
	</style>
</head>
<body>
	<div class="box" id="box" name='box'></div>
	<b>afegqe</b>
	<div class="box"></div>
	<script type="text/javascript">
		var a=document.getElementsByName('box') 

		a[0].style.backgroundColor='blue'

		var b=document.getElementsByTagName('b') 

		b[0].style.color='red'

		var c=document.getElementsByClassName('box')

		c[1].style.backgroundColor='yellow'
	</script>
</body>
</html>